package com.bootdo.app.controller;

import com.bootdo.app.service.BackGroundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * @create 2021-02-27 16-28
 */
@Controller
@RequestMapping("/app/background")
public class BackgroundController {

    @Autowired
    private BackGroundService backGround;


    @GetMapping("/listBack")
    @ResponseBody
    public List selectBackGround(int backType){
        return backGround.selectAdminBackGround(backType);
    }


}
